package cn.yangyanzhao.hotclock.subject.clock;

import cn.yangyanzhao.hotclock.subject.Clock;

public class PhoneClock extends Clock{

	private UtcTime utcTime;

	public PhoneClock(int utcOffset) {
		super(utcOffset);
	}

	@Override
	public void setLocalTime(int localTime) {
		super.localTime = localTime;
		this.utcTime.setUtcZeroTime(localTime - UTC_OFFSET);
	}

	public void setUtcTime(UtcTime utcTime) {
		this.utcTime = utcTime;
	}
	
}
